package io.admin.modules.sys.service;

import io.admin.common.page.PageData;
import io.admin.common.service.CrudService;
import io.admin.modules.sys.dto.EquipmentDTO;
import io.admin.modules.sys.entity.EquipmentEntity;
import io.admin.modules.sys.entity.EquipmentEntityPage;

import java.util.List;
import java.util.Map;

/**
 * 设备表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-06
 */
public interface EquipmentService extends CrudService<EquipmentEntity, EquipmentDTO> {

    PageData page(Map<String, Object> params);

    Integer getLineCount(Long lineId,Long projectId);

     Integer getRepeatByEquipment(EquipmentDTO equipmentDTO);

    EquipmentDTO findEqByParam(EquipmentDTO equipmentDTO);

    List<EquipmentEntityPage>  getLineList(Map<String, Object> params);

    List<EquipmentEntityPage> listByProject(Map<String, Object> params);

    Map<String,Object>  getIdDownByThisSortId(EquipmentDTO equipmentEntity);
    Map<String,Object> getIdUpByThisSortId(EquipmentDTO equipmentEntity);

    Integer getSortEnd(EquipmentDTO equipmentDTO);

}